package request

// 个人信息
type SalePersonalInfo struct {
	SaleId   int64  `json:"sale_id"`
	UserName string `json:"user_name"`
	Phone    string `json:"phone"`
	Card     string `json:"card"`
}

// 修改密码
type PasswordInfo struct {
	OldPassword     string `json:"old_password"     binding:"min=1,max=100" `
	NewPassword     string `json:"new_password"     binding:"min=1,max=100"`
	ConfirmPassword string `json:"confirm_password" binding:"min=1,max=100"`
}

// 用户信息
type UserPersonInfo struct {
	UserName string `json:"user_name"   binding:"required"`
	Phone    string `json:"phone"       binding:"required"`
	Card     string `json:"card"        binding:"required"`
	Password string `json:"password"    binding:"required"`
}

// 更新信息
type UpdateInfo struct {
	SaleId   *int64         `json:"sale_id"   binding:"required"`
	UserInfo UserPersonInfo `json:"user_info" binding:"required"`
}
